If \(N = \mathrm{length}(x)\), then the skewness of
\(x\) is defined as
$$N^{-1} \mathrm{sd}(x)^{-3} \sum_i (x_i - \mathrm{mean}(x))^3.$$
If \(N = \mathrm{length}(x)\), then the kurtosis of
\(x\) is defined as
$$N^{-1} \mathrm{sd}(x)^{-4}%
\sum_i(x_i - \mathrm{mean}(x))^4 - 3.$$